package com.cskaoyan.controller.vx.issue;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.vxBo.collect.VxCollectListBo;
import com.cskaoyan.bean.vo.TVO;
import com.cskaoyan.mapper.wxMapper.MarketIssueMapper;
import com.cskaoyan.service.vx.MarketIssueService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: DYQ
 * @time: Created on 2022/6/10 9:35
 */

@RestController
@RequestMapping("wx/issue")
public class VxIssueController {

    @Autowired
    MarketIssueService marketIssueService;

    @RequestMapping("list")
    public BaseRespVo list (VxCollectListBo vxCollectListBo) {
        Integer limit = vxCollectListBo.getLimit();
        Integer page = vxCollectListBo.getPage();
        TVO tvo = marketIssueService.queryIssueList(limit, page);
        return BaseRespVo.ok(tvo);
    }

}
